#include <cstdio>
#include <cstdlib>

// Included files for OpenGL Rendering
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif

#include <iostream> 
#include <ctime> 

#include "argparser.h"
#include "glCanvas.h"
#include "mesh.h"

// =========================================
// =========================================

int main(int argc, char *argv[]) {
  ArgParser *args = new ArgParser(argc, argv);
  Mesh *mesh = new Mesh();
  mesh->Load(args->input_file);
  GLCanvas glcanvas;

  glutInit(&argc,argv);
  glcanvas.initialize(args,mesh); 

  delete mesh;
  delete args;
  return 0;
}

// =========================================
// =========================================
